<?php
$session=new CHttpSession();
$session->open();
$i=$session['i'];

if(!empty($data)) {
    $user=Users::model()->with('p')->findByPk($data->uid);
    echo '<li class="bt btt"><a href="'.Yii::app()->createUrl('article/view', array('menu'=>0,'type'=>1, 'id'=>$data->aid)).'">'.mb_substr($data->title,0,36,'UTF-8').'</a></li>'.
        '<li class="ren">'.mb_substr($data->excerpt,0, 10, 'UTF-8').'</li>'.
        '<li class="time">'.substr($data->createtime,0,10).'</li>'.
        '<li class="hit" style="width:150px;text-align:center;">'.$data->clicknumber.'</li>';
}

$session['i']=$i+1;
?>